<?php
/**
 * @desc 支付配置文件
 * @author Tinywan(ShaoBo Wan)
 * @date 2022/03/11 20:15
 */
return [
    '_force' => true, // 注意，这个必须是true
    'alipay' => [
        'default' => [
            // 必填-支付宝分配的 app_id
            'app_id' => '2021004180609310',
            // 必填-应用私钥 字符串或路径
            'app_secret_cert' => 'MIIEpAIBAAKCAQEAsm2GsE01N0RqBpknofyGqqc8qJCLCZn2duXfqbiUqtraaWb+QwEQkdOEU3RpYVOrUz5v7M3zMA2bISimFTnRoDjG0xjNWHTzqLjYxyRGAXlDkhQBQApWyR93GwQZblYHKFyky4l/Xua3ZHjQVFU35hr2xlMVIUberhSgVPhS5DHpA5DfTPjlP6Vrm5QM8XCFn/LSni76vs6D2W4mcuZuqZD6/f6p4Vti2OgHgrJbHc+JpSHwJ7ff5qs97IvAJxGBdhhGdRFQ5y2s+o2gt/ZjMjGQXTQRzW2njqhCio8/t6Sp9kyRR6vSyBbe0JD7mY3jJVZ5DOyYDRDo7H51AtkCRQIDAQABAoIBAEtXVi0xnMvmdoKsvwB2WgLLNSDUT/FQ8rJH5IaM6zGt0dX56FkwpOd+kfyPRkQTiV9QGQC8AfkDdcKtoFuMG4j1EHdonKTCVXSkAN0t4uWSZ8bR7ak19GlegPOGapqdds5DOE69k2vmLgAdx5IkncLrFdKumFiBzVtiWEUoyg+SkxqmOtfpSuwDjyYCDUcd/nd4skAZS9HWHnDT7FGGAx7uw+2zcexw1HpNhNexHwJwa81NbEbXQF9l3awzdtz5zs4q8Y+SGPvr9XeSQNZTk1dKUkdbypIMLGryCQRTWjPc23MZgy92bJHydFcGRWXBFqXBSmIz/DkAsFy2oRV5SwECgYEA18f94xnH46kVLTCfLjdtWDSelE25oIaCbRcVk1EHgsIg/1dqK+sVTd76Yue9ZiuThJzMHNbsLNX3zYXT6E4nvdK8XdrVwL02Aj/CddqMqHMiTKA9ibrwZ/i8Ar2yPgsLqUf0Pzs5Isf6PrKs+kjWqTRn8Nqs9H8BNxkiy6mySMECgYEA0683bKvI6qu7+wUQuMmBUTTnkQTpGbGWFZD4eZ+bG0KINAC5/6a/AEpA+6LBdbkF3zerhTeVBlOXiafTHTv0zXQblvMGojZWH8t5vx1HATPPHRdCpgcyP0BiiBCdCn0CsPUMyMi5zt4DRn1arlNGEy5sS/DN6eh4mwvTWfmAtoUCgYAZb0R4+Xf7WNnbKskInJXx+Lnch1DjIBfNnhP3+mwlOJbFIlusc5heRnNDJ0fG/En2LrlMiPTr0AjWm/i/gD7k/Csh8QKTJnpwR223kJxV2sRnPdgjHPrrdoFK3WteLtUgDhA3R9bTR7kynMMQ+Xb8GOZLmKscYsAU64yTbxxJwQKBgQCWz9dZ2c1ru2xSu1odfJpgI6PzAp+byZSWytDrvZVAx5bIDdh11fNwHnbLkDnqSCZx0HSnlWDbwARPczyKMGQJV/YsBfqs6K9VOZ8EVLR4m9Or8x1tseTPgWxxafyoM0YOkpdIGRGf2zZUKwzG89cR5VoMhIP/aLs8IyGxkXttDQKBgQCFP6GC/Yu+XkOyLmFSSLm1HTjZ8B/vyqYD9m7jvbf0HiTRGiIRnVtmmKrCHS4tesVALpjz2KuTgmfaInxi/35LSRiB6N+2jqgKEPBWl/1jlbYndJ9dKDcT3cbsGyO7Mrp3xpXHMXZ6PNMha+iU/GvSNgFM5H04UURFntj93Ta42Q==',
            // 必填-应用公钥证书 路径
            'app_public_cert_path' => base_path() . '/public/payment/appCertPublicKey.cert',
            // 必填-支付宝公钥证书 路径
            'alipay_public_cert_path' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlgsET7SESA76n2AGq4dfR5/Lz3AdStTtzmqqSCszrqltQ0/6KSGfE0vTdU7eKzYgSDl5qtR8dK4fu7B3SJlbHsDWE0B4GBdalSrmcJZJtcapVpJKxShvEmTSRuIEgqmsDT4zZLJ1Jm28Yh+SncJfnX7ovMit/fCdHCEStuVTAqluZWa5etInb7KbxF3ClAKIgbTygKAx968lcTVjaSxn+CdHGi8BnWE7vnTzvuUW1qsjjy8Q64rYss3bcRxtNoieU0A69LYmj2oE2U6uflBmHnGK64mzBExApD9f8OeG9IkRldy18B8BphPhdRXGX7/buXX+qbCK9+HBAlyFgWZF6wIDAQAB',
            // 必填-支付宝根证书 路径
            'alipay_root_cert_path' => base_path() . '/public/payment/alipayRootCert.txt',
            // 选填-同步回调地址
            'return_url' => '',
            // 选填-异步回调地址
//            'notify_url' => 'http://www.myydl.cn/payment/alipayNotify',
            'notify_url' => 'http://daili.byzhenyu.cn/payment/alipayNotify',
            // 选填-服务商模式下的服务商 id，当 mode 为 Pay::MODE_SERVICE 时使用该参数
            'service_provider_id' => '',
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SANDBOX, MODE_SERVICE
            'mode' => \Yansongda\Pay\Pay::MODE_NORMAL,
        ]
    ],
    'wechat' => [
        'default' => [
            // 必填-商户号，服务商模式下为服务商商户号
            'mch_id' => '1616102840',
            // 必填-商户秘钥 v2 puzNaeJGcKbWvyGQSWKbNg6JwRWmeyJp
            'mch_secret_key_v2' => 'puzNaeJGcKbWvyGQSWKbNg6JwRWmeyJp',
            'mch_secret_key' => 'puzNaeJGcKbWvyGQSWKbNg6JwRWmeyJ3',
            // 必填-商户私钥 字符串或路径
            'mch_secret_cert' => base_path() . '/public/payment/apiclient_key.pem',
            // 必填-商户公钥证书路径
            'mch_public_cert_path' => base_path() . '/public/payment/apiclient_cert.pem',
            // 必填
//            'notify_url' => 'http://www.myydl.cn/payment/wechatNotify',
            'notify_url' => 'http://daili.byzhenyu.cn/payment/wechatNotify',
            // 选填-公众号 的 app_id
            'mp_app_id' => 'wxab315d4ea61c9b68',
            // 选填-小程序 的 app_id
            'mini_app_id' => 'wxab315d4ea61c9b68',
            // 选填-app 的 app_id
            'app_id' => 'wxab315d4ea61c9b68',
            // 选填-合单 app_id
            'combine_app_id' => '',
            // 选填-合单商户号
            'combine_mch_id' => '',
            // 选填-服务商模式下，子公众号 的 app_id
            'sub_mp_app_id' => '',
            // 选填-服务商模式下，子 app 的 app_id
            'sub_app_id' => '',
            // 选填-服务商模式下，子小程序 的 app_id
            'sub_mini_app_id' => '',
            // 选填-服务商模式下，子商户id
            'sub_mch_id' => '',
            // 选填-微信公钥证书路径, optional，强烈建议 php-fpm 模式下配置此参数
            'wechat_public_cert_path' => [
                'PUB_KEY_ID_0116161028402025091800291711000600' => base_path() . '/public/payment/pub_key.pem',
            ],
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SERVICE
            'mode' => \Yansongda\Pay\Pay::MODE_NORMAL,
        ]
    ],
    'logger' => [
        'enable' => false,
        'file' => runtime_path() . '/logs/pay.log',
        'level' => 'debug', // 建议生产环境等级调整为 info，开发环境为 debug
        'type' => 'single', // optional, 可选 daily.
        'max_file' => 30, // optional, 当 type 为 daily 时有效，默认 30 天
    ],
    'http' => [ // optional
        'timeout' => 5.0,
        'connect_timeout' => 5.0,
        // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
    ]
];